package org.zqy.domain;

import java.io.Serializable;

/**
 * 部门结构实体类
 * 
 * @author qyzhang4
 * 
 */
public class Department implements Serializable {
	private static final long serialVersionUID = 2960951097040201466L;
	/** id ,自动增长 */
	private int did;
	/** 部门代号 */
	private int dcode;
	/** 部门名称 */
	private String dname;
	/** 部门负责人 */
	private String dbossaccount;
	/** 部门级别 */
	private int dlevel;
	/** 所属部门代号 */
	private int dfather;

	public Department() {
	}

	public Department(int dcode, String dname, String dbossaccount, int dlevel,
			int dfather) {
		this.dcode = dcode;
		this.dname = dname;
		this.dbossaccount = dbossaccount;
		this.dlevel = dlevel;
		this.dfather = dfather;
	}

	// get、set方法

	public int getDid() {
		return did;
	}

	public void setDid(int did) {
		this.did = did;
	}

	public int getDcode() {
		return dcode;
	}

	public void setDcode(int dcode) {
		this.dcode = dcode;
	}

	public String getDname() {
		return dname;
	}

	public void setDname(String dname) {
		this.dname = dname;
	}

	public String getDbossaccount() {
		return dbossaccount;
	}

	public void setDbossaccount(String dbossaccount) {
		this.dbossaccount = dbossaccount;
	}

	public int getDlevel() {
		return dlevel;
	}

	public void setDlevel(int dlevel) {
		this.dlevel = dlevel;
	}

	public int getDfather() {
		return dfather;
	}

	public void setDfather(int dfather) {
		this.dfather = dfather;
	}

	@Override
	public String toString() {
		return "部门名称:" + dname + ";上级部门:" + dfather;
	}
}
